from tortoise.fields import BigIntField
from application.model import TortoiseBaseModel


class FollowModel(TortoiseBaseModel):
    """
    用户关注关联表
    """
    follower_id: int = BigIntField(null=False, description="关注者ID", index=True)
    followee_id: int = BigIntField(null=False, description="粉丝ID", index=True)

    class Meta:
        table: str = "follow"  # 表名
        table_description: str = "用户关注表，用于关注、粉丝"  # 表描述
